/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package comum;

import org.hibernate.Session;

/**
 *
 * @author Jean
 */
public class ConectaHibernateMySQL {
    
    public static void main(String[] args) {
		Session sessao = null;
		try {
			sessao = HibernateUtil.getSessionFactory().openSession();
			System.out.println("Conectou!");
		} finally {
			sessao.close();
		}
	}
    
}
